import request from '@/utils/request'
// 表单渲染
export function zzq() {
  return request({
    url: '/shop',
    method: 'get'
  })
}
export function xxx(data) {
  return request({
    url: '/shop',
    method: 'post',
    data
  })
}

export function user(data) {
  return request({
    url: '/user',
    method: 'get',
    data
  })
}
// 查询
export function query(data) {
  return request({
    url: `shop?shop_name_like=${data.input}&industry_name_like=${data.select}`,
    method: 'get'
  })
}
// 下拉行业
export function industryList() {
  return request({
    url: '/industry',
    method: 'get'
  })
}
// 修改
export function modify(id, data) {
  return request({
    url: `/shop/${id}`,
    method: 'patch',
    data
  })
}
// 删除
export function del(id) {
  return request({
    url: `/shop/${id}`,
    method: 'delete'
  })
}
// 表单验证
export function prove() {
  return request({
    url: `/shop`,
    method: 'get'
  })
}
export function shop_xxx(id) {
  return request({
    url: `/shop/${id}`,
    method: 'get'
  })
}
export function date(page) {
  return request({ url: `/shop?_page=${page.currentPage3}&_limit=${page.pageSize}` })
}
export function good(id) {
  return request({
    url: `/good?shop_id=${id}`,
    method: 'get'
  })
}

// 订单列表
export function order(id) {
  return request({
    url: `/order`,
    method: 'get'
  })
}

// 用户
export function _user() {
  return request({
    url: `/user`,
    method: 'get'
  })
}

export function zzzqq() {
  return request({
    url: `/shop`,
    method: 'get'
  })
}
